//
//  IdentiSelecrPersonVC.m
//  智慧小区
//
//  Created by 高永杨 on 2017/3/18.
//  Copyright © 2017年 zhongchuang. All rights reserved.
//

#import "IdentiSelecrPersonVC.h"

@interface IdentiSelecrPersonVC ()
@property (weak, nonatomic) IBOutlet UIButton *yeZhuButt;
/**<#参数意思#>*/
@property(nonatomic,weak)UIButton *selectBut;
@end

@implementation IdentiSelecrPersonVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.selectBut = self.yeZhuButt;
    self.selectBut.selected = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)selectIdenti:(UIButton *)sender {
    self.selectBut.selected = NO;
    sender.selected = YES;
    self.selectBut = sender;
}

- (IBAction)remoVie:(UIButton *)sender {
  
       [self.view removeFromSuperview];
    [self removeFromParentViewController];
}
- (IBAction)sureBut:(UIButton *)sender {
    if (_myblock) {
        _myblock(self.selectBut.currentTitle);
    }
    [self remoVie:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
